<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta name="Generator" content="68ECSHOP v4_2" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="Keywords" content="" />
		<meta name="Description" content="" />
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<title>我的淘嘟嘟 - 个人资料</title>
		<link rel="stylesheet" type="text/css" href="__CSS__/home/68ecshop_common.css" />
		<link rel="stylesheet" type="text/css" href="__CSS__/home/user.css" />
		<script src="__JS__/home/common.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="__JS__/jquery.validate.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="__JQ__" type="text/javascript" charset="utf-8"></script>
		<!--	时间插件	-->
		<script type="text/javascript" src="__JS__/time/birthday.js"></script>
		<!--	时间插件	-->
		<!--F 上传图片-->
		<script type="text/javascript" src="__JS__/jquery.ui.widget.js"></script>
		<script type="text/javascript" src="__JS__/jquery.iframe-transport.js"></script>
		<script type="text/javascript" src="__JS__/jquery.fileupload.js"></script>
		<!--E 上传图片-->
		<!--			layer-->
		<script type="text/javascript" src="__JS__/jquery.form.js"></script>
		<script type="text/javascript" src="__JS__/tips/toastr.min.js"></script>
		<script type="text/javascript" src="__JS__/layer/layer.js"></script>
		<script type="text/javascript" src="__JS__/jquery.layer.js"></script>
		<!--			layer-->

		<style>
			.reveal-modal-bg {
				position: fixed;
				height: 100%;
				width: 100%;
				z-index: 100;
				display: none;
				top: 0;
				left: 0;
				background: rgba(00, 00, 00, 0.4);
			}
			
			.reveal-modal {
				visibility: hidden;
				top: 0;
				bottom: 0;
				left: 0;
				right: 0;
				margin: 30px auto 0;
				width: 800px;
				position: absolute;
				z-index: 200;
			}
			
			.reveal-modal .baoguo {
				width: 100%;
				height: 800px;
				position: relative;
				z-index: 300;
			}
			
			.reveal-modal .baoguo img {
				width: 100%;
			}
			
			.reveal-modal .close-reveal-modal {
				width: 36px;
				height: 36px;
				position: absolute;
				top: 11px;
				right: 81px;
				cursor: pointer;
				z-index: 400;
			}
			
			.reveal-modal .hongbaoBtn {
				border: 0px;
				width: 200px;
				height: 60px;
				position: absolute;
				left: 305px;
				bottom: 108px;
				display: block;
			}
			
			.reveal-modal .hongbaoBtn img {
				border: 0px;
				width: 100%;
				height: 100%;
			}
			
			.reveal-modal .close-reveal-modal img {
				width: 100%;
				height: 100%;
			}
		</style>
		<!--[if lt IE 9]>
<style>
.reveal-modal-bg{filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#cc000000,endColorstr=#cc000000);}
</style>
<![endif]-->
	</head>

	<body>
	<!--头部导航-->
	<include file="Public/head_a"/>
	<include file="Public/head_b"/>
	<include file="Public/head_c"/>

		<script type="text/javascript">
			//<![CDATA[

			function checkSearchForm() {
				if(document.getElementById('keyword').value) {
					var frm = document.getElementById('searchForm');
					var type = parseInt(document.getElementById('searchtype').value);
					frm.action = type == 0 ? 'search.php' : 'stores.php';
					return true;
				} else {
					alert("请输入关键词！");
					return false;
				}
			}

			function myValue1() {
				document.getElementById('keyword').value = "请输入商品名称或编号...";
			}

			function myValue2() {
				document.getElementById('keyword').value = "";
			}

			//]]>
			$('.search-type li').click(function() {
				$(this).addClass('cur').siblings().removeClass('cur');
				$('#searchtype').val($(this).attr('num'));
			});
			$(function() {
				//头部搜索
				$('.search-type').hover(function() {
					$(this).css({
						"height": "auto",
						"overflow": "visible"
					});
				}, function() {
					$(this).css({
						"height": 32,
						"overflow": "hidden"
					});
				});

			});

			function _show_(h, b) {
				if(!h) {
					return
				}
				if(b && b.source && b.target) {
					var d = (typeof b.source == "string") ? M.$("#" + b.source) : b.source;
					var e = (typeof b.target == "string") ? M.$("#" + b.target) : b.target;
					if(d && e && !e.isDone) {
						e.innerHTML = d.value;
						d.parentNode.removeChild(d);
						if(typeof b.callback == "function") {
							b.callback()
						}
						e.isDone = true
					}
				}
				M.addClass(h, "hover");
				if(b && b.isLazyLoad && h.isDone) {
					var g = h.find("img");
					for(var a = 0, c = g.length; a < c; a++) {
						var f = g[a].getAttribute("data-src_index_menu");
						if(f) {
							g[a].setAttribute("src", f);
							g[a].removeAttribute("data-src_index_menu")
						}
					}
					h.isDone = true
				}
			}

			function _hide_(a) {
				if(!a) {
					return
				}
				if(a.className.indexOf("hover") > -1) {
					M.removeClass(a, "hover")
				}
			}
			$(".expand-menu .list").hover(function() {
				$(this).children(".categorys").show();
			}, function() {
				$(this).children(".categorys").hide();
			})
		</script>
		<div class="margin-w1210 clearfix">
			<!--S用户中心公共左边-->
			<include file="Public/user_left"/>
			<!--E用户中心公共左边-->
			<div class="user-right">
				<div class="box" style="width: 980px;margin-left: 5px;">
					<script type="text/javascript">
						var bonus_sn_empty = "请输入您要添加的红包号码！";
						var bonus_sn_error = "您输入的红包号码格式不正确！";
						var email_empty = "请输入您的电子邮件地址！";
						var email_error = "您输入的电子邮件地址格式不正确！";
						var old_password_empty = "请输入您的原密码！";
						var new_password_empty = "请输入您的新密码！";
						var confirm_password_empty = "请输入您的确认密码！";
						var both_password_error = "您现两次输入的密码不一致！";
						var msg_blank = "不能为空";
						var no_select_question = "- 您没有完成密码提示问题的操作";
					</script>
					<script type="text/javascript">
						function setTabCatGoods(name, cursel, n) {
							for(i = 1; i <= n; i++) {
								var menu = document.getElementById(name + i);
								var con = document.getElementById("con_" + name + "_" + i);
								con.style.display = i == cursel ? "block" : "none";
								menu.className = i == cursel ? "active" : "";
							}
						}
					</script>
					<div class="tabmenu">
						<ul class="tab">
							<li class="active" id="tab1" onclick="setTabCatGoods('tab',1,3)">基本信息</li>
							<li class="" id="tab2" onclick="setTabCatGoods('tab',2,3)">更换头像</li>
							<li class="" id="tab3" onclick="setTabCatGoods('tab',3,3)">实名认证</li>
						</ul>
					</div>
					<div class="ncm-user-profile">
						<div class="ncm-default-form" id="con_tab_1" style="display: block;">
							<form name="company" action="{:U('User/basic_info')}" method="post" enctype="multipart/form-data" id="myform_a">
								<table width="100%" border="0" cellpadding="10" cellspacing="1" bgcolor="#eee">
									<tbody>
										<tr>
											<td width="35%" align="right">用户名称：</td>
											<td width="65%" align="left">
												<input type="text" name="user_name" value="{$res['user_name']}" size="25" class="inputBg" style="ime-mode:disabled">
												<span id="username_message" style="color:#E31939"></span>
											</td>
										</tr>
										<tr>
											<td align="right">性别：</td>
											<td align="left">
												<label><input type="radio" name="user_sex" value="0" {$sex[0]}>保密&nbsp;&nbsp; </label>
												<label><input type="radio" name="user_sex" value="1" {$sex[1]}>男&nbsp;&nbsp; </label>
												<label><input type="radio" name="user_sex" value="2" {$sex[2]}>女 </label>
											</td>
										</tr>
										<tr>
											<td align="right">现居地：</td>
											<td align="left">
												<dl>
													<dd>
														<select class="form-control width-auto" name="user_provinceid" id="province_id" data-current="{$res['user_provinceid']}">
															<option value>请选择省份</option>
														</select>
														<select class="form-control width-auto" name="user_cityid" id="city_id" data-current="{$res['user_cityid']}">
															<option value>请选择城市</option>
														</select>
														<select class="form-control width-auto" name="user_areaid" id="area_id" data-current="{$res['user_areaid']}">
															<option value>请选择区县</option>
														</select>
													</dd>
												</dl>
											</td>
										</tr>
										<tr>
											<td align="right"><label for="query_start_time">出生日期：</label></td>
											<td align="left">
												<div class="demo">
													<p>
														<select id="sel_year" rel="{$date[0]}" name="years"></select>年
														<select id="sel_month" rel="{$date[1]}" name="month"></select>月
														<select id="sel_day" rel="{$date[2]}" name="day"></select>日
													</p>
												</div>
											</td>
										</tr>
										<tr>
											<td align="right">详细地址：</td>
											<td align="left"><input type="text" name="user_areainfo" value="{$res['user_areainfo']}" class="inputBg">
												<div class="required-notice"><i class="notice-icon"></i><span class="notice-text address-detail-notice"></span></div>
											</td>
										</tr>
										<tr>
											<td colspan="2" align="center">
												<label class="submit-border"><input name="act" type="hidden" value="act_edit_profile"><input name="submit" type="submit" class="main-btn main-btn-large" value="确认修改"></label>
											</td>
										</tr>
									</tbody>
								</table>
							</form>
						</div>
						<div class="ncm-default-form" id="con_tab_2" style="display: none;">
							<form name="formEdit" action="{:U('User/avatar')}" method="post" enctype="multipart/form-data"  onsubmit="return userEdit($(this))" id="myform_b">
								<table width="100%" border="0" cellpadding="10" cellspacing="1" bgcolor="#eee">
									<tbody>
										<tr>
											<td width="35%" align="right">头像预览：</td>
											<td class="user-avatar">
												<p class="hint">
													完善个人信息资料，上传头像图片有助于您结识更多的朋友。<br>
													<span style="">头像最佳默认尺寸为120x120像素。</span>
												</p>
											</td>
										</tr>
										<tr>
											<td width="35%" align="right">更换头像：</td>
											<td>
												<div class="ncm-upload-btn">
													<!-- 图片上传按钮 -->
													<input class="fileupload" type="file" name="image" data-name="user_avatar" data-num="1">
													<!-- 图片展示模块 -->
													<div class="files">
														<if condition="$res['user_avatar']">
														<div class="images_zone"><input type="hidden" name="user_avatar" value="{$res['user_avatar']}">
															<span><img src="{$res['user_avatar']}!100x100"></span>
															<a href="javascript:;" style="display: none;">删除</a>
														</div>
														</if>
													</div>
													<div style="clear:both;"></div>
													<!-- 图片上传进度条模块 -->
													<div class="up_progress"><div class="progress-bar"></div></div>
												</div>
											</td>
										</tr>
										<tr>
											<td colspan="2" align="center">
												<label class="submit-border"><input name="act" type="hidden" value="act_edit_img"><input name="submit" type="submit" class="main-btn main-btn-large" value="确认修改"></label>
											</td>
										</tr>
									</tbody>
								</table>
							</form>
						</div>
						<if condition="$res['user_card_bind'] eq 1">
							<div class="ncm-default-form" id="con_tab_3" style="display: none;">
									<table width="100%" border="0" cellpadding="10" cellspacing="1" bgcolor="#eeeeee">
										<tbody>
										<tr>
											<td width="28%" align="right">
												<font class="main-color">*</font>真实姓名：</td>
											<td width="72%" align="left">{$res['user_truename']}
												<div class="required-notice"><i class="notice-icon"></i><span class="notice-text people-name-notice"></span></div>
											</td>
										</tr>
										<tr>
											<td align="right">
												<font class="main-color">*</font>身份证号：</td>
											<td align="left">{$res['user_card']|cover_string}
												<div class="required-notice"><i class="notice-icon"></i><span class="notice-text people-num-notice"></span></div>
											</td>
										</tr>
										</tbody>
									</table>
							</div>
							<else />
						<div class="ncm-default-form" id="con_tab_3" style="display: none;">
							<form name="formEdit" action="{:U('User/validation')}" method="post" onsubmit="return userEdit($(this))" id="myform_c">
								<table width="100%" border="0" cellpadding="10" cellspacing="1" bgcolor="#eeeeee">
									<tbody>
										<tr>
											<td width="28%" align="right">
												<font class="main-color">*</font>真实姓名：</td>
											<td width="72%" align="left"><input type="text" name="user_truename" value="" class="inputBg">
												<div class="required-notice"><i class="notice-icon"></i><span class="notice-text people-name-notice"></span></div>
											</td>
										</tr>
										<tr>
											<td align="right">
												<font class="main-color">*</font>身份证号：</td>
											<td align="left"><input type="text" name="user_card" value="" class="inputBg">
												<div class="required-notice"><i class="notice-icon"></i><span class="notice-text people-num-notice"></span></div>
											</td>
										</tr>
										<tr>
											<td align="right">
												<font class="main-color">*</font>身份证证件照：</td>
											<td align="left">正面：
												<div class="ncm-upload-btn">
													<!-- 图片上传按钮 -->
													<input class="fileupload" type="file" name="image" data-name="user_is_img" data-num="1">
													<!-- 图片展示模块 -->
													<div class="files"></div>
													<div style="clear:both;"></div>
													<!-- 图片上传进度条模块 -->
													<div class="up_progress"><div class="progress-bar"></div></div>
												</div>
												<br>
												<div class="required-notice"><i class="notice-icon"></i><span class="notice-text people-card-notice"></span></div>
											</td>
										</tr>
										<tr>
											<td align="right">&nbsp;</td>
											<td align="left">反面：
												<div class="ncm-upload-btn">
													<!-- 图片上传按钮 -->
													<input class="fileupload" type="file" name="image" data-name="user_the_img" data-num="1">
													<!-- 图片展示模块 -->
													<div class="files"></div>
													<div style="clear:both;"></div>
													<!-- 图片上传进度条模块 -->
													<div class="up_progress"><div class="progress-bar"></div></div>
												</div>
												<br>
											</td>
										</tr>
										<tr>
											<td width="28%" align="right">&nbsp;</td>
											<td align="left">
												<input name="act" type="hidden" value="act_identity">
												<input name="submit" type="submit" value="确认" class="main-btn main-btn-large"></td>
										</tr>
									</tbody>
								</table>
							</form>
						</div>
						</if>


					</div>
				</div>
			</div>
		</div>
		<div class="pop-mask"></div>
		<!--S公共尾部-->
		<div style="clear: both"></div>
	<div class="site-footer">
		<div class="footer-related">
			<include file="Public/bootom_a" />
			<include file="Public/bootom_b" />
			<include file="Public/bootom_c" />
		</div>
	</div>
		<a href="#" class="big-link" data-reveal-id="myModal" data-animation="fade"></a>
	</body>
	<!--F 上传图片-->
	<script type="text/javascript" src="__JS__/jquery.uploads.js"></script>
	<!--F 上传图片-->
	<!--时间-->
	<script>
		$(function () {
			$.ms_DatePicker({
				YearSelector: "#sel_year",
				MonthSelector: "#sel_month",
				DaySelector: "#sel_day"
			});
			$.ms_DatePicker();
		});
	</script>
	<!--F 省市区三级联动-->
	<script src="__JS__/area.data.js"></script>
	<script src="__JS__/jquery.region.js"></script>
	<script type="text/javascript">
		$("#myform_a").region();
	</script>
	<!--E 省市区三级联动-->
<!--layer-->
	<script type="text/javascript">
		$('#myform_a').layer({});
		$('#myform_b').layer({});
		$('#myform_c').layer({});
	</script>
</html>